                        <div id="leftcontainer">
                            <div id="firstpane" class="menu_list">
<?
if (isset($navs)) {
    foreach ($navs as $group) {
?>
        <p class="menu_head<? if($group['selected']) echo " selected"; ?>"><a href="#"><?=$group['label']?></a></p>
        <div class="menu_body">
<?
        $items = $group['items'];
        if(isset($items)) {
            foreach($items as $item) {
                $iselected = false;
                $reqtype = '';
                if($group['selected'] && $item['selected']) { $iselected = true; }
                if(strpos($item['url'],'ajax')) { $reqtype="reqtype=\"ajax\"";  }
?>
            <a class="menuitem" <?=$reqtype?> href="<?=base_url($group['url']."/".$item['url'])?>" <? if($iselected) echo "class=\"selected\""?>><?=$item['label']?></a>        
<?                
            }
        }
?>        
        </div>    
<?
    }    
}
?>
                            </div>
                            <script language="javascript" type="text/javascript">
                                $(document).ready( function() {
                                    $('a[reqtype="ajax"].menuitem').click(function () {
                                        //alert($(this).attr('href'));
                                        $("#content").load($(this).attr('href'));
                                        return false;
                                    });
                                });
                            </script>
                        </div>